<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<!--  EVE Corporation Management     -->
<!--  Date:    May 14, 2010       -->
<!--  Author:  diabeteman         -->

<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="cache-control" content="no-cache" />
  <meta http-equiv="expires" content="3600" />
  <meta name="revisit-after" content="2 days" />
  <meta name="author" content="diabeteman" />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/m/css/layout1_setup.css" />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="/m/css/layout1_text.css" />
  <script type="text/javascript" src="/m/js/lib/jquery.js"></script>
  <script type="text/javascript" src="/m/js/csrf.js"></script>
  <script type="text/javascript" src="/m/js/ecm_lib.js"></script>
  <link rel="icon" type="image/png" href="/m/img/favicon.png" />
  <link rel="shortcut icon" type="image/png" href="/m/img/favicon.png" />
  <title>ECM - {% block headtitle %}{% endblock %}</title>
  {% block header_scripts %}{% endblock %}
</head>

<!-- Global IE fix to avoid layout crash when single word size wider than column width -->
<!--[if IE]><style type="text/css"> body {word-wrap: break-word;}</style><![endif]-->
<body>
  <!-- Main Page Container -->
  <div class="page-container">

    <!-- A. HEADER -->      
    <div class="header">
      
      <!-- A.1 HEADER MIDDLE -->
      <div class="header-middle">    
   
        <!-- Sitelogo and sitename -->
        <a class="sitelogo" href="/" title="Go to Start page"></a>
        <div class="sitename">
          <h1><a href="/" title="Go to Start page">{{ corp_name }}</a></h1>
          <h2>EVE Corporation Management</h2>
        </div>

        <!-- logged user -->
        <div class="nav0">
            {% if user.is_authenticated %}Logged in as <b>{{ user.username }}</b>
            {% else %}Please log in.
            {% endif %}
        </div>
        <!-- header links -->
        <div class="nav1">
          <ul>
            {% if user.is_authenticated %}
            <li><a href="/account" >User Profile</a></li>
            <li><a href="/account/logout" title="Log out from ECM">Logout</a></li>
            {% else %}
            <li><a href="/account/create" >Create Account</a></li>
            <li><a href="/account/login?next=/account" >Login</a></li>
            {% endif %}
            {% if user.is_staff and user.is_superuser %}
            <li><a href="/admin/" title="Restricted area :-)">Administration</a></li>
            {% endif %}
          </ul>
        </div>              
      </div>
      {% block menu %}
      <!-- A.2 HEADER BOTTOM -->
	{% if user.is_authenticated %}
      <div class="header-bottom">
        <!-- Navigation Level 2 (Drop-down menus) -->
        <div class="nav2">
{{ user_menu|safe }}         
        </div>
	  </div>
       {% endif %} {# user.is_authenticated #}
      {% endblock %} {# menu #}
      <!-- A.3 HEADER BREADCRUMBS -->

      <!-- Breadcrumbs -->
      <div class="header-breadcrumbs">
        <ul>
          {% block breadcrumbs %}
          {# insert a list of breadcrumbs here #}
          {% endblock %}
        </ul>
      </div>
 
    </div>

    <!-- B. MAIN -->
    <div class="main">
  
      <!-- B.1 MAIN CONTENT -->
      <div class="main-content">
        <!-- Pagetitle -->
        {% block main_content %}
        {# main page content here #}
        {% endblock %}
      </div>
    </div>
      
    <!-- C. FOOTER AREA -->      

    <div class="footer">
      <p>version {{ecm_version}} | Copyright &copy; 2010-2011 diabeteman | All Rights Reserved</p>
      <p class="credits"><a href="http://code.google.com/p/eve-corp-management/">Project on google code</a> | Powered by <a href="http://www.python.org/">Python</a> and <a href="http://www.djangoproject.com/">Django</a></p>
    </div>      
  </div> 
  
</body>
</html>


